//
//  BKDragLoadingView.h
//  XPhoto
//
//  Created by sentinel on 2020/3/26.
//  Copyright © 2020 baboy. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger, BKDragLoadingViewState) {
    BKDragLoadingViewStateInit = 0,
    BKDragLoadingViewStateDraging,
    BKDragLoadingViewStateDragBeyond,
    BKDragLoadingViewStateLoading,
    BKDragLoadingViewStateLoadFinished
};

typedef NS_ENUM(NSInteger, BKDragLoadingViewType) {
    BKDragLoadingViewTypeRefresh ,
    BKDragLoadingViewTypeLoadMore
};

@interface BKDragLoadingView : UIView
- (id)initWithFrame:(CGRect)frame loadingType:(BKDragLoadingViewType) loadingType;
@property (nonatomic, assign) BKDragLoadingViewState state;
@property (nonatomic, assign) BKDragLoadingViewType loadingType;
- (CGFloat) visibleHeight; 
//+ (void)registerBanner:(NSString *)bannerUrl;
@end


@protocol BKDragLoadingViewDelegate <NSObject>
@optional
- (void)update:(id)scrollView;
- (void)loadMore:(id)scrollView;
@end

NS_ASSUME_NONNULL_END
